package com.haixiaoke.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.common.annotation.Excel;
import com.haixiaoke.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 智能锁密码授权信息对象 biz_smart_lock_pwd
 *
 * @author xiaolong
 * @date 2023-05-31
 */
@Data
public class SmartLockPwd extends BaseEntity {
    //密码生成方式:1自定义 2系统生成
    public static final Integer PASSWORD_GENERATE_TYPE_CUSTOM = 1; //自定义
    public static final Integer PASSWORD_GENERATE_TYPE_SYSGEN = 2; //系统生成

    private static final long serialVersionUID = 1L;
    /**
     * 密码授权id
     */
    private Long pwdId;

    /**
     * 厂商密码授权id
     */
    private Long returnPwdId;

    /**
     * 智能锁SN
     */
    @Excel(name = "智能锁SN")
    private String sn;

    /**
     * 天网互联智能锁标识
     */
    @Excel(name = "天网互联智能锁标识")
    private String identification;

    /**
     * 密码生成方式:1自定义
     */
    @Excel(name = "密码生成方式:1自定义 2系统生成")
    private Integer generateType;

    /**
     * 密码值
     */
    @Excel(name = "密码值")
    private String password;

    /**
     * 授权开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "授权开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 授权结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "授权结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 慧享佳授权ID
     */
    @Excel(name = "慧享佳授权ID")
    private String keyId;

    /**
     * 智能锁对应标识
     */
    private String lockIdentifier;

}
